noSuchMenuItemErr -15951 noSuchMenuErr -15950 menuMismatchErr -15955 menuItemMismatchErr -15956 menuItemDisabledErr -15952 menuEventPendingErr -15953 kMEEventClass 'Mænu' keyShiftKeyPressed 'shik' keyOptionKeyPressed 'optk' keyMenuTitle 'mnti' keyMenuMDEFID 'mndf' keyMenuItemText 'mite' keyMenuItemStyle 'mist' keyMenuItemMark 'mima' keyMenuItemID 'miid' keyMenuItemIcon 'miic' keyMenuItemEnabled 'mien' keyMenuItemCmd 'micm' keyMenuID 'mnid' keyMenuEventsTattoo 'Mænu' keyMenuEnabled 'mnen' keyControlKeyPressed 'conk' keyCommandKeyPressed 'comk' kAEMESelectMenuItem 'semi' kAEMEQueryMenuList 'qmn#' kAEMEQueryMenu 'qmn '   Constant Value  xConstants defined in the Menu Events suite     do not match and menu item text -15956 The given menu item ID menuItemMismatchErr   do not match and menu title -15955 The given menu ID menuMismatchErr   on this application is already pending -15953 Another Menu event menuEventPendingErr   disabled -15952 The item is menuItemDisabledErr   such item -15951 The menu has no noSuchMenuItemErr   no such menu noSuchMenuErr -15950 The application has   with remote processes extension is locked) or (if Menu Events with other processes refusing to interact -1713 The application is errAENoUserInteraction   no menu bar mBarNFnd -126 The application has Result Codes    Required or Optional? Required Descriptor Type: typeNull the event that Menu Events handled Description: A null parameter to verify keyMenuEventsTattoo   Reply Parameters   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu selection pressed at the time of the Description: Whether the Command key is keyCommandKeyPressed   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu selection pressed at the time of the Description: Whether the Option key is keyOptionKeyPressed   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu selection pressed at the time of the Description: Whether the Control key is keyControlKeyPressed   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu selection pressed at the time of the Description: Whether the Shift key is keyShiftKeyPressed  specified. NOTE: Either keyMenuItemID or keyMenuItemText, or both, must be  Required or Optional? Optional Descriptor Type: typeChar it appears in the menu Description: The text of the item, as keyMenuItemText   Required or Optional? Optional Descriptor Type: typeShortInteger from 1 at the top of the menu Description: The ID of the item, numbered keyMenuItemID  NOTE: Either keyMenuID or keyMenuTitle, or both, must be specified.  Required or Optional? Optional Descriptor Type: typeChar List Apple event returned by a Query Menu Description: The title of the menu, as keyMenuTitle   Required or Optional? Required Descriptor Type: typeShortInteger List Apple event returned by a Query Menu Description: The ID of the menu, as keyMenuID   Parameters  Event ID kAEMESelectMenuItem  Event Class kMEEventClass  with remote processes (kAEInteractWithLocal mode). and the Menu Events extension has been locked, if it refuses to interact (kAEInteractWithSelf mode), or, if the application is on another machine if the application refuses to interact with other processes is as if the user had actually selected that menu item. Interaction will fail and the application reacts to the mouse events in the usual way, the result modifier key states as specified. If the Menu event is correctly handled, mouse events to simulate the selection of the given menu item, with requests user interaction to bring the application to the front, then posts by item ID and/or item text) from a menu (selected by ID and/or title). It A Select Menu Item event simulates the selection of a command (selected  xSelect Menu Item - perform a menu command     do not match and menu title -15955 The given menu ID menuMismatchErr   no such menu noSuchMenuErr -15950 The application has   with remote processes extension is locked) or (if Menu Events with other processes refusing to interact -1713 The application is errAENoUserInteraction   no menu bar mBarNFnd -126 The application has Result Codes    Required or Optional? Required Descriptor Type: typeNull the event that Menu Events handled Description: A null parameter to verify keyMenuEventsTattoo    Required or Optional? Required Descriptor Type: typeShortInteger lower byte character of the item, in the Description: The Command-key equivalent keyMenuItemCmd   Required or Optional? Required Descriptor Type: typeShortInteger in the lower byte Description: The style value of the item, keyMenuItemStyle   Required or Optional? Required Descriptor Type: typeShortInteger 'cicn' resource resource ID of the 'ICON' or which is 256 less than the Description: The icon number of the item, keyMenuItemIcon   Required or Optional? Required Descriptor Type: typeShortInteger item, in the lower byte Description: The mark character of the keyMenuItemMark   Required or Optional? Required Descriptor Type: typeBoolean enabled Description: Whether or not the item is keyMenuItemEnabled   Required or Optional? Required Descriptor Type: typeChar it appears in the menu Description: The text of the item, as keyMenuItemText   Required or Optional? Required Descriptor Type: typeShortInteger from 1 at the top of the menu Description: The ID of the item, numbered keyMenuItemID    Required or Optional? Required Descriptor Type: typeAEList following parameters item, each containing the records, one for each Description: A list of Apple event keyDirectObject   Reply Parameters   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu bar click pressed at the time of the Description: Whether the Command key is keyCommandKeyPressed   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu bar click pressed at the time of the Description: Whether the Option key is keyOptionKeyPressed   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu bar click pressed at the time of the Description: Whether the Control key is keyControlKeyPressed   Default Value: false Required or Optional? Optional Descriptor Type: typeBoolean simulated menu bar click pressed at the time of the Description: Whether the Shift key is keyShiftKeyPressed  NOTE: Either keyMenuID or keyMenuTitle, or both, must be specified.  Required or Optional? Optional Descriptor Type: typeChar List Apple event returned by a Query Menu Description: The title of the menu, as keyMenuTitle   Required or Optional? Optional Descriptor Type: typeShortInteger List Apple event returned by a Query Menu Description: The ID of the menu, as keyMenuID   Parameters  Event ID kAEMEQueryMenu  Event Class kMEEventClass   referenced by the keyMenuItemIcon parameter. complete enough to reconstruct the menu, except for the icon resources menus, then reads the items from the given menu. This information is modifier key states as specified, to force the application to update its front, then posts mouse events to simulate a click in the menu bar, with and/or title). It requests user interaction to bring the application to the containing information about all items in a given menu (selected by ID A Query Menu Apple event asks the application to return a list of records  xQuery Menu - list all items in a menu     no menu bar mBarNFnd -126 The application has Result Codes    Required or Optional? Required Descriptor Type: typeNull the event that Menu Events handled Description: A null parameter to verify keyMenuEventsTattoo    Required or Optional? Required Descriptor Type: typeShortInteger is not a resource that the definition procedure ordinarily 0; -1 signifies procedure ('MDEF') resource, Description: The ID of the menu definition keyMenuMDEFID   Required or Optional? Required Descriptor Type: typeBoolean a whole, is enabled Description: Whether or not the menu, as keyMenuEnabled   Required or Optional? Required Descriptor Type: typeChar it appears in the menu bar Description: The title of the menu, as keyMenuTitle   Required or Optional? Required Descriptor Type: typeShortInteger it may have come from ID of the 'MENU' resource necessarily equal to the Description: The ID of the menu, not keyMenuID    Required or Optional? Required Descriptor Type: typeAEList following parameters menu, each containing the records, one for each Description: A list of Apple event keyDirectObject   Reply Parameters  Parameters none  Event ID kAEMEQueryMenuList  Event Class kMEEventClass   Help, Keyboard, or Application menus. in its menu bar. This information includes the Apple menu, but not the records containing information about all menus defined by the application A Query Menu List Apple event asks the application to return a list of  xQuery Menu List - list all application-defined menus    Select Menu Item Perform a menu command Query Menu List all items in a menu Query Menu List List all application-defined menus   Name Requested action  xApple events defined in the Menu Events suite    parameters. Script,” which demonstrates the usage of the following events and This package also includes a sample script, “Menu Events Sample information, for the benefit of scripting packages such as AppleScript. contains an 'aete' resource which records the following dictionary definitions which appear here. The “Menu Events Scripting Addition” file NOTE: The C header file “Menu Events.h” contains the constant   used in the Apple Event Registry. The following is a formal description of the Menu Events suite, in the form   åMenu Events Suite § §